package com.xiaohong.user.feign;
import com.xiaohong.user.pojo.User;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient(name="user-service")
@RequestMapping("/user")
public interface UserFeign {
    /***
     * 多条件搜索数据
     * @param User
     * @return
     */
    @PostMapping(value = "/search" )
    Result<List<User>> findList(@RequestBody(required = false) User User);

    /***
     * 修改User数据
     * @param User
     * @return
     */
    @PutMapping
    Result update(@RequestBody User User);

}
